import request from "@/axios";

export class warningApi {
    // 列表
    static page = (params) => request.getAndLoadData("/adminapi/warn/index", params);
    // 告警开关
    static switch = ({ id }, params) => request.getAndLoadData(`/adminapi/warn/switch/${id}`, params);
    // 删除
    static delete = ({ id }, params) => request.delAndLoadData(`/adminapi/warn/delete/${id}`, params);
    // 批量删除
    static deleteList = (params) => request.post("/adminapi/warn/batch", params);
  }